/**
 * Copyright (C) 2017-2018 pinganfang, Inc. All Rights Reserved.
 */
package com.pingan.haofang.searchcloud.api.matedata.constant;

import java.util.HashMap;
import java.util.Map;

import com.pingan.haofang.searchcloud.api.matedata.FieldMeta;

/**
 * @author huhailiang937
 * @date 2017年5月16日上午10:08:04
 * @since 1.0.0
 */
public class SQLConstant {
    
    public static final String Q_KEY = "q";

    public static final String DF_KEY = "df";

    public static final String DF_SEARCH_KEY = "default_search_field";

    public static final String GEO_D_KEY = "d";

    public static final Map<String, FieldMeta> HF_KEY = new HashMap<String, FieldMeta>();

    static {
        HF_KEY.put(Q_KEY, new FieldMeta(DF_SEARCH_KEY, MetadataFieldType.MY_IK));
        HF_KEY.put(DF_SEARCH_KEY, new FieldMeta(DF_SEARCH_KEY, MetadataFieldType.MY_IK));
        HF_KEY.put(DF_KEY, new FieldMeta(DF_SEARCH_KEY, MetadataFieldType.MY_IK));
        HF_KEY.put(GEO_D_KEY, new FieldMeta(GEO_D_KEY, MetadataFieldType.GEO));
    }

}
